package net.osweb.crm.modules.event.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Usermessage entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "event_usermessage")
public class UserMessage implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7455038728957151275L;
	private Integer id;
	private Integer userid;
	private String nameSubject;
	private String fromer;
	private String toer;
	private String message;
	private Integer category;
	private Integer level;
	private Integer isavailability;
	private String comment;

	// Constructors

	/** default constructor */
	public UserMessage() {
	}

	/** full constructor */
	public UserMessage(Integer userid, String nameSubject, String fromer,
			String toer, String message, Integer category, Integer level,
			Integer isavailability, String comment) {
		this.userid = userid;
		this.nameSubject = nameSubject;
		this.fromer = fromer;
		this.toer = toer;
		this.message = message;
		this.category = category;
		this.level = level;
		this.isavailability = isavailability;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "name_subject")
	public String getNameSubject() {
		return this.nameSubject;
	}

	public void setNameSubject(String nameSubject) {
		this.nameSubject = nameSubject;
	}

	@Column(name = "fromer", length = 127)
	public String getFromer() {
		return this.fromer;
	}

	public void setFromer(String fromer) {
		this.fromer = fromer;
	}

	@Column(name = "toer", length = 127)
	public String getToer() {
		return this.toer;
	}

	public void setToer(String toer) {
		this.toer = toer;
	}

	@Column(name = "message", length = 127)
	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Column(name = "category")
	public Integer getCategory() {
		return this.category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	@Column(name = "level")
	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}